@import "./variables";
@import "./theme";

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue,
  Helvetica,
  PingFang SC,
  Hiragino Sans GB,
  Microsoft YaHei,
  Arial,
  sans-serif;
  color: var(--van-text-color);
  background-color: var(--color-background-2);
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.van-hairline--bottom::after {
  border-bottom-width: 0 !important;
}

/* 滚动视图基础样式 */
.scroll-view {
  position: relative;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.scroll-view__content {
  box-sizing: border-box;
  min-width: 100%;
}

/* 横向滚动样式 */
.scroll-view--horizontal {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;

  .scroll-view__content {
    display: inline-flex;
    flex-wrap: nowrap;
  }
}

/* 纵向滚动样式 - 新增 */
.scroll-view--vertical {
  overflow-x: hidden;
  overflow-y: auto;

  .scroll-view__content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
  }
}

/* 修改 .hide-scrollbar 类 */
.hide-scrollbar {
  // 移动端保持隐藏
  @media (pointer: coarse) {
    &::-webkit-scrollbar { display: none; }
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  // 桌面端显示细滚动条
  @media (pointer: fine) {
    &::-webkit-scrollbar {
      height: 4px;
      background: transparent;
    }
    &::-webkit-scrollbar-thumb {
      background: rgba(255,255,255,0.3);
      border-radius: 2px;
    }
  }
}

@keyframes showOpacity {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes Rotate {
  to {
    transform: rotate(360deg);
  }
}

.custom-navbar-wrapper {
  min-height: 100%;
  background-image: linear-gradient(180deg,
  #d5e2ff 0%,
  #ffffff 16%,
  #ffffff 100%);
  background-repeat: no-repeat;
}

.custom-navbar-wrapper-f5f5f5 {
  min-height: 100%;
  background-image: linear-gradient(180deg, #D5E2FF 0%, #F5F5F5 16%, #F5F5F5 100%);
  background-repeat: no-repeat;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.style-image-item:not(:nth-child(3n)) {
  margin-right: 10px;
}

.scroll-view__content {
}

.c-translucent-balck50 {
  background-color: rgba(0, 0, 0, 0.5);
}

.c-animation-opacity {
  opacity: 0;
  animation: showOpacity 0.5s forwards;
}

.loading-circle {
  border: 4px solid #E7EFFF;
  border-bottom-color: #2614FF;
  animation: Rotate 0.8s linear infinite;
}

.c-bg-17B459-10 {
  background-color: rgba(23, 180, 89, 0.1);
}

.c-bg-FF4A35-10 {
  background-color: rgba(255, 74, 53, 0.1);
}
.c-translucent-balck60 {
  background-color: rgba(0, 0, 0, 0.6);
}
.c-linear-purple {
  background-image: linear-gradient(99deg, #6c3dff 0%, #0f07ff 100%);
}
.c-linear-80FFBD {
  background-image: linear-gradient(45deg, #FFFC17 0%, #80FFBD 100%);
}
.c-linear-D5E2FF {
  background-image: linear-gradient(180deg, #D5E2FF 0%, #FFFFFF 41%);
}

.c-bg-2614FF-5 {
  background-color: rgba(38, 20, 255, 0.05);
}
.text-with-underline {
  background-image: linear-gradient(90deg, #8cffc1 0%, #8cffc1 100%);
  background-size: 100% 60%;
  background-repeat: no-repeat;
  background-position: bottom right;
}
.c-bg-white-10 {
  background-color: rgba(255, 255, 255, 0.1);
}
.c-bg-white-50 {
  background-color: rgba(255, 255, 255, 0.5);
}
.c-bg-white-70{
  background-color: rgba(255, 255, 255, 0.7);
}
.c-fa-dingding {
  font-family: dingdingjinbu, -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', STHeiti, 'Microsoft Yahei', Tahoma, Simsun, sans-serif;
}
.opera-box-shadow {
  box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.1);
}
